<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" encoding="ISO-8859-1" />
	<xsl:template match="/">
		<table border="1">
				<xsl:apply-templates select="//pizza"/>
		</table>

	</xsl:template>

	<xsl:template match="pizza">
		<tr>
			<td>			
			<img>
				<xsl:attribute name="src">
					<xsl:value-of select="imageURL"></xsl:value-of>
				</xsl:attribute>
				<xsl:attribute name="att">
					<xsl:value-of select="nom"></xsl:value-of>
				</xsl:attribute>
			</img>
			</td>
			<td>
			<p>
			<h1><xsl:value-of select="nom" /></h1>
			
			<xsl:apply-templates select="ingredient" /><br />
			</p>
			</td>
			<td>	
	
				<input type="text" size="2" value="0">
					<xsl:attribute name="name">
						<xsl:value-of select="nom"></xsl:value-of>
					</xsl:attribute>
				</input>
			
			</td>
			<td><xsl:value-of select="prix" /> euros</td> 
		</tr>

	</xsl:template>
	
	<xsl:template match="ingredient">
			<xsl:value-of select="." /> -
	</xsl:template>
	
</xsl:stylesheet>

